import request from '@/utils/request'

// 查询学员约课/退课列表
export function listGoodsOrders(query) {
  return request({
    url: '/course/goodsOrders/list',
    method: 'get',
    params: query
  })
}

// 查询学员约课/退课详细
export function getGoodsOrders(id) {
  return request({
    url: '/course/goodsOrders/' + id,
    method: 'get'
  })
}

// 新增学员约课/退课
export function addGoodsOrders(data) {
  return request({
    url: '/course/goodsOrders',
    method: 'post',
    data: data
  })
}

// 修改学员约课/退课
export function updateGoodsOrders(data) {
  return request({
    url: '/course/goodsOrders',
    method: 'put',
    data: data
  })
}

// 删除学员约课/退课
export function delGoodsOrders(id) {
  return request({
    url: '/course/goodsOrders/' + id,
    method: 'delete'
  })
}
